package com.why.service;

import com.why.dto.UserDTO;
import com.why.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
* @author 王-自信
* @description 针对表【user(用户表)】的数据库操作Service
* @createDate 2024-11-26 16:12:56
*/
public interface UserService extends IService<User> {

    User findByUserName(UserDTO userDTO);

    void register(UserDTO userDTO);

    void update(User user);

    User findById(Integer id);

    void updateAvatar(String avatarUrl);

    void updatePwd(String newPwd);
}
